<div class="title_menu">Thể loại</div>
<ul>
<?php
$typeOfPicDAO = new typeOfPictureDAO();
$listTypeOfPic = $typeOfPicDAO->selectAll();
foreach($listTypeOfPic as $typeOfPic){
?>
    <li>
        <a href="?module=home&typeid=<?php echo $typeOfPic->typeId ?>">
            <?php echo $typeOfPic->name; ?>
        </a>
    </li>
<?php      
}
?>
</ul>